<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        div {
            overflow: hidden;
        }
        
        ul {
            height: 100px;
            overflow: hidden;
            /*transition: all .2s;*/
        }
        
        li {
            width: 80px;
            height: 38px;
            list-style: none;
            float: left;
            border: 0;
            background-color: greenyellow;
            text-align: center;
        }
        
        .clearfix:after {
            content: ".";
            display: block;
            height: 0;
            clear: both;
            visibility: hidden;
        }
        
        .clearfix {
            zoom: 1;
        }
        
        .active {
            background-color: indigo;
        }
    </style>
</head>

<body>
    <div>
        <ul class="clearfix">
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
            <li>6</li>
            <li>7</li>
            <li>8</li>
            <li>9</li>
            <li>10</li>
            <li>11</li>
            <li>12</li>
        </ul>
    </div>
</body>
<script src="../lib/jquery/jquery.min.js"></script>
<script src="./滑动拦.js"></script>

</html>